<!DOCTYPE html>
<html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>tplay_main</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <script src="__PUBLIC__/echarts/echarts.min.js"></script>
  <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="__PUBLIC__/font-awesome/css/font-awesome.min.css" media="all">
  <link rel="stylesheet" href="__CSS__/admin-1.css" media="all">
  <style>
  	.ys{
  		color: #2BB6F6;
  	}
  	h4{
  		margin-top: 20px;
  	}
  	.layui-btn-danger {
        background-color: #ccc;
    }
  </style>
<body class="layui-layout-body" style="overflow-y:visible;">
    <div class="layadmin-tabsbody-item layui-show"><div class="layui-fluid">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md12">
      <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
          <div class="layui-card">
            <div class="layui-card-header">交易数据</div>
            <div class="layui-card-body">
            	<div class="layui-form">
            		<div style="float: right;">
            			<button class="layui-btn layui-btn-danger layui-btn-sm" {if condition="$time eq 'today'"}style="background-color: #2BB6F6;"{/if}><a href="{:url('admin/main/index',['tptime'=>'today'])}" style="color: white;">今日</a></button>
            			<button class="layui-btn layui-btn-danger layui-btn-sm" {if condition="$time eq 'yesterday'"}style="background-color: #2BB6F6;"{/if}><a href="{:url('admin/main/index',['tptime'=>'yesterday'])}" style="color: white;">昨日</a></button>
            			<button class="layui-btn layui-btn-danger layui-btn-sm" {if condition="$time eq 'week'"}style="background-color: #2BB6F6;"{/if}><a href="{:url('admin/main/index',['tptime'=>'week'])}" style="color: white;">最近一周</a></button>
            			<button class="layui-btn layui-btn-danger layui-btn-sm" {if condition="$time eq 'month'"}style="background-color: #2BB6F6;"{/if}><a href="{:url('admin/main/index',['tptime'=>'month'])}" style="color: white;">最近一月</a></button>
            			<button class="layui-btn layui-btn-danger layui-btn-sm" style="background-color: #2BB6F6;"><a href="{:url('admin/data/storelist')}" style="color: white;">更多数据</a></button>
            		</div>
            	
  <table class="layui-table" lay-size="lg">
    <colgroup>
      <col width="200">
      <col width="200">
      <col width="200">
      <col width="200">
      <col width="200">
      <col width="200">
      <col width="200">
    </colgroup>
    <thead>
      <tr>
        <th><h3>订单总金额</h3></th>
        <th><h3>订单总优惠金额</h3></th>
        <th><h3>实收总金额</h3></th>
        <th><h3>新增会员数</h3></th>
        <th><h3>会员卡充值金额</h3></th>
        <th><h3>会员购卡金额</h3></th>
        <th><h3>房卷赠送总数</h3></th>
      </tr> 
    </thead>
    <tbody>
    	  <tr>
        <td>
        	<h3 class="ys">{$info['total'][0]['price'] ? $info['total'][0]['price'] : '0.00'}<h3/>
        	<h4>笔数：<span class="ys">{$info['total'][0]['bs'] ? $info['total'][0]['bs'] : 0}</span></h4>
        </td>
        <td>
        	<h3 class="ys"><?php echo round($info['total'][0]['price']-$info['total'][0]['je'],2) ? round($info['total'][0]['price']-$info['total'][0]['je'],2) : '0.00'?><h3/> 
        </td>
        <td>
        	<h3 class="ys">{$info['total'][0]['je'] ? $info['total'][0]['je'] : '0.00'}<h3/>
        	<h4>笔数：<span class="ys">{$info['total'][0]['bs'] ? $info['total'][0]['bs'] : 0}</span></h4>
        </td>
        <td>
        	<h3 class="ys">{$ucount}<h3/> 
        </td>
        <td>
        	<h3 class="ys">{$info['cz'][0]['je'] ? $info['cz'][0]['je'] : '0.00'}<h3/>
        	<h4>笔数：<span class="ys">{$info['cz'][0]['bs'] ? $info['cz'][0]['bs'] : 0}</span></h4>
        </td>
        <td>
        	<h3 class="ys">{$info['gk'][0]['je'] ? $info['gk'][0]['je'] : '0.00'}<h3/>
        	<h4>笔数：<span class="ys">{$info['gk'][0]['bs'] ? $info['gk'][0]['bs'] : 0}</span></h4>
        </td>        
        <td>
        	<h3 class="ys">{$info['zs'][0]['num'] ? $info['zs'][0]['num'] : '0.00'}<h3/>
        	<h4>笔数：<span class="ys">{$info['zs'][0]['count'] ? $info['zs'][0]['count'] : 0}</span></h4>
        </td>    
      </tr> 
    </tbody>
    
    <thead>
      <tr>
        <th><h3>房卷核销总数</h3></th>
        <th><h3>会员卡消费金额</h3></th>
        <th><h3>微信</h3></th>
        <th><h3>支付宝</h3></th>
        <th><h3>银联</h3></th>
        <th><h3>现金</h3></th>
        <th><h3>其他</h3></th>
      </tr> 
    </thead>
    <tbody>
    	  <tr>
        <td>
        	<h3 class="ys">{$info['hx'][0]['je'] ? $info['hx'][0]['je'] : '0.00'}<h3/>
        	<h4>笔数：<span class="ys">{$info['hx'][0]['bs'] ? $info['hx'][0]['bs'] : 0}</span></h4>
        </td>
        <td>
        	<h3 class="ys">{$info['xf'][0]['je'] ? $info['xf'][0]['je'] : '0.00'}<h3/>
        	<h4>笔数：<span class="ys">{$info['xf'][0]['bs'] ? $info['xf'][0]['bs'] : 0}</span></h4>
        </td>
        <td>
        	<h3 class="ys">{$info['wx'][0]['je'] ? $info['wx'][0]['je'] : '0.00'}<h3/>
        	<h4>笔数：<span class="ys">{$info['wx'][0]['bs'] ? $info['wx'][0]['bs'] : 0}</span></h4>
        </td>
        <td>
        	<h3 class="ys">{$info['zfb'][0]['je'] ? $info['zfb'][0]['je'] : '0.00'}<h3/>
        	<h4>笔数：<span class="ys">{$info['zfb'][0]['bs'] ? $info['zfb'][0]['bs'] : 0}</span></h4>
        </td>
        <td>
        	<h3 class="ys">{$info['yhk'][0]['je'] ? $info['yhk'][0]['je'] : '0.00'}<h3/>
        	<h4>笔数：<span class="ys">{$info['yhk'][0]['bs'] ? $info['yhk'][0]['bs'] : 0}</span></h4>
        </td>
        <td>
        	<h3 class="ys">{$info['xj'][0]['je'] ? $info['xj'][0]['je'] : '0.00'}<h3/>
        	<h4>笔数：<span class="ys">{$info['xj'][0]['bs'] ? $info['xj'][0]['bs'] : 0}</span></h4>
        </td>       
        <td>
        	<h3 class="ys">{$info['qt'][0]['je'] ? $info['qt'][0]['je'] : '0.00'}<h3/>
        	<h4>笔数：<span class="ys">{$info['qt'][0]['bs'] ? $info['qt'][0]['bs'] : 0}</span></h4>
        </td>    
      </tr> 
    </tbody>
  </table>
</div> 
      </div>
    </div>

    </div>
    
  </div>
  </div>
  </div>
 
</body>
</html> 